package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.CreatePrizeParam;
import com.example.lotterysystem.controller.param.PageParam;
import com.example.lotterysystem.service.dto.PageListDTO;
import com.example.lotterysystem.service.dto.PrizeDTO;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface PrizeService {
    /**
     * 创建奖品
     * @param param
     * @param pricePic
     * @return 返回奖品 id
     */
    Long createPrize(CreatePrizeParam param, MultipartFile pricePic);

    /**
     * 查询奖品列表
     * @param param
     * @return
     */
    PageListDTO<PrizeDTO> findPageList(PageParam param);
}
